/*
 * @Description: 路由
 * @Author: ShareKong
 * @Date: 2022-07-26 16:44:22
 * @LastEditors: ShareKong
 * @LastEditTime: 2022-10-29 17:37:44
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'index',
        component: () => import('@/views/index/index.vue'),
        meta: {
            title: '主页'
        }
    },
    // {
    //     path: '/404',
    //     name: '404',
    //     redirect: '',
    //     component: () => import('@/views/404/404.vue'),
    //     children: [],
    //     meta: {
    //         title: '空明-404 错误'
    //     }
    // },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})


export default router